package com.ming.elm.dao;

import java.util.List;

import com.ming.elm.po.OrderDetailet;
import org.apache.ibatis.annotations.Select;

public interface OrderDetailetDao {

	// 根据order表和cart表来将OrderDetailet数据添加到OrderDetailet表
	int saveOrderDetailetBatch(List<OrderDetailet> list) throws Exception;

	// @Select("select * from orderdetailet where orderId = #{orderId}")
	List<OrderDetailet> listOrderDetailetByOrderId(Integer orderId) throws Exception;

	// 通过子查询的方法来生成订单明细表
	int saveOrderDetailet(Integer orderId) throws Exception;
}
